namespace SqlWebAdmin.Toolbars
{
    using System;
    using System.Data;
    using System.Drawing;
    using System.Web;
    using System.Web.UI.WebControls;
    using System.Web.UI.HtmlControls;

    public partial  class TableLocation : System.Web.UI.UserControl
    {

        protected void Page_Load(object sender, System.EventArgs e)
        {
            string databaseName = Request["database"];
            string tableName = Request["table"];

            TableNameHyperLink.NavigateUrl  = String.Format("../Columns.aspx?database={0}&table={1}", Server.UrlEncode(databaseName), Server.UrlEncode(tableName));
            TableNameHyperLink.Text         = Server.HtmlEncode(tableName);
        }

        #region Web Form Designer generated code
        override protected void OnInit(EventArgs e)
        {
            InitializeComponent();
            base.OnInit(e);
        }
        
        private void InitializeComponent()
        {
        }
        #endregion
    }
}
